package com.han.jdbc.spring.jpa;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.han.jdbc.spring.jpa.dao.CustomerDaoCopy;
import com.han.jdbc.spring.jpa.domain.CustomerCopy;

/**
* @author hanpeng
* @version 创建时间：2020年8月16日 上午8:40:55
* @ClassName 类名称
* @Description 类描述
*/
public class TestDao {
	public static void main(String[] args) {
		ApplicationContext context = new ClassPathXmlApplicationContext("classpath:applicationContext.xml");
		CustomerDaoCopy customerDao =  context.getBean("customerDaoCopy",CustomerDaoCopy.class );
		CustomerCopy one = customerDao.getOne(105L);
		System.out.println(one);
		// System.out.println(serviceBean);
		//customerDao.delete(500l);
		//Customer customer = customerDao.findOne(1l);
        //System.out.println(customer);
	}
}
